def test2(str1):
    vowel = {'a', 'e', 'i', 'o', 'u'}
    vowels = {i: 0 for i in vowel}
    for char in str1:
        if char in vowel:
            vowels[char] += 1
    return vowels


# zfc = input('请输入一个字符串：')
print(test2('hello'))

number = 10
def test():
    print(number)
test()

def test1():
    global number
    number+=1
    print(number)
test1()
print(number)

def test3():
    number=10
    def test_in():
        nonlocal number
        number+=10
    print(number)
    test_in()
    print(number)
test3()